﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MS.InformationManagement.Presenter.Support;

namespace MS.InformationManagement.Presenter.UserManagement
{
    public class UserManagementPresenter : BasePresenter<IUserManagementView>
    {
        #region Constructor

        public UserManagementPresenter(IUserManagementView view) : base(view) { }

        #endregion

        #region Public Methods

        public void HandleLoad()
        {
            View.SystemUsers = new BLL.UserManagement.UsersManagement().GetAllSystemUsers();
            View.Show();
        }

        public void CreateUsers()
        {
            new BLL.UserManagement.UsersManagement().CreateUsers(View.SelectedUsers, View.Properties);
            View.SystemUsers = new BLL.UserManagement.UsersManagement().GetAllSystemUsers();
            View.Show();
        }

        #endregion

    }
}
